//
//  DevChartTypeModel.h
//  RuiHeApp
//
//  Created by Jun on 2022/11/24.
//

#import "BaseModel.h"

NS_ASSUME_NONNULL_BEGIN


/// 图表类型
typedef NS_ENUM(NSInteger, DevChartType) {
    ChartType_Master               = 0, // Master
    ChartType_Inverter             = 1, // Inverter
    ChartType_PCContr              = 2, // PV Controller
    ChartType_PCS                  = 3, // PCS
    ChartType_PACK                 = 4, // PACK
    ChartType_DCDCIN               = 5, // DCDCIN
    ChartType_DCDCOUT              = 6, // DCDCOUT
    ChartType_COMBOX               = 7, // combiner box
    ChartType_SMARTSW              = 8, // smart switch
    ChartType_EMS                  = 9, // ems
};

typedef NS_ENUM(NSInteger, DevInverTerType) {
    InverTerType_Solar             = 0, // Solar
    InverTerType_Grid              = 1, // Grid
    InverTerType_Load              = 2  // Load
};

@class DevChartParamsModel;

@interface DevChartTypeModel : BaseModel

@property (nonatomic ,assign) DevChartType type;

@property (nonatomic ,copy) NSString *icon_name;

@property (nonatomic ,copy) NSString *title;

@property (nonatomic ,assign) NSInteger packNum;

@property (nonatomic ,assign) DevInverTerType inverTerType;


+ (NSArray *)creatTypesData;

+ (DevChartParamsModel *)creatChartParams:(DevChartType)type;

- (DevChartParamsModel *)creatChartParams;

@end

NS_ASSUME_NONNULL_END
